package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.tongbing.config.*;
import com.yanqu.road.entity.activity.tongbing.data.*;
import com.yanqu.road.entity.activity.tongbing.join.CrossTongBingUnionJoin;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class TongBingActivityBusiness {

    // ========== 配置 ==========

    public static Map<Integer, TongBingBuffTypeConfig> getTongBingBuffTypeConfigMap(int activityId) {
        return DaoHelper.getTongBingBuffTypeConfigDaoImpl().getTongBingBuffTypeConfigLMap(activityId);
    }

    public static Map<Integer, TongBingCityTypeConfig> getTongBingCityTypeConfigMap(int activityId) {
        return DaoHelper.getTongBingCityTypeConfigDaoImpl().getTongBingCityTypeConfigMap(activityId);
    }

    public static Map<Integer, TongBingCityConfig> getTongBingCityConfigMap(int activityId) {
        return DaoHelper.getTongBingCityConfigDaoImpl().getTongBingCityConfigMap(activityId);
    }

    public static Map<Integer, TongBingNpcEventConfig> getTongBingNpcEventConfigMap(int activityId) {
        return DaoHelper.getTongBingNpcEventConfigDaoImpl().getTongBingNpcEventConfigMap(activityId);
    }

    public static Map<Integer, TongBingTitleConfig> getTongBingTitleConfigMap(int activityId) {
        return DaoHelper.getTongBingTitleConfigDaoImpl().getTongBingTitleConfigMap(activityId);
    }

    // ========== 数据 ==========


    public static TongBingUserData getTongBingUserData(int activityId, long userId) {
        return DaoHelper.getTongBingUserDataDaoImpl().getTongBingUserData(activityId,userId);
    }

    public static boolean addTongBingUserData(TongBingUserData data) {
        return DaoHelper.getTongBingUserDataDaoImpl().add(data);
    }

    public static boolean updateTongBingUserData(TongBingUserData data) {
        return DaoHelper.getTongBingUserDataDaoImpl().update(data);
    }

    public static CrossTongBingData getCrossTongBingData(int activityId, int groupId) {
        return DaoHelper.getCrossTongBingDataDaoImpl().getCrossTongBingData(activityId, groupId);
    }

    public static boolean addCrossTongBingData(CrossTongBingData data) {
        return DaoHelper.getCrossTongBingDataDaoImpl().add(data);
    }

    public static boolean updateCrossTongBingData(CrossTongBingData data) {
        return DaoHelper.getCrossTongBingDataDaoImpl().update(data);
    }

    public static Map<Integer, CrossTongBingCampData> getCrossTongBingCampDataMap(int activityId, int groupId) {
        return DaoHelper.getCrossTongBingCampDataDaoImpl().getCrossTongBingCampDataMap(activityId, groupId);
    }

    public static boolean addCrossTongBingCampData(CrossTongBingCampData data) {
        return DaoHelper.getCrossTongBingCampDataDaoImpl().add(data);
    }

    public static boolean updateCrossTongBingCampData(CrossTongBingCampData data) {
        return DaoHelper.getCrossTongBingCampDataDaoImpl().update(data);
    }

    public static Map<String, CrossTongBingUnionJoin> getCrossTongBingUnionJoinMap(int activityId, int groupId) {
        return DaoHelper.getCrossTongBingUnionJoinDaoImpl().getCrossTongBingUnionJoinMap(activityId, groupId);
    }

    public static boolean addCrossTongBingUnionJoin(CrossTongBingUnionJoin data) {
        return DaoHelper.getCrossTongBingUnionJoinDaoImpl().add(data);
    }

    public static boolean updateCrossTongBingUnionJoin(CrossTongBingUnionJoin data) {
        return DaoHelper.getCrossTongBingUnionJoinDaoImpl().update(data);
    }

    public static Map<Long, CrossTongBingUserData> getCrossTongBingUserDataMap(int activityId, int groupId) {
        return DaoHelper.getCrossTongBingUserDataDaoImpl().getCrossTongBingUserDataMap(activityId, groupId);
    }

    public static boolean addCrossTongBingUserData(CrossTongBingUserData data) {
        return DaoHelper.getCrossTongBingUserDataDaoImpl().add(data);
    }

    public static boolean updateCrossTongBingUserData(CrossTongBingUserData data) {
        return DaoHelper.getCrossTongBingUserDataDaoImpl().update(data);
    }

    public static boolean addCityReportList(List<CrossTongBingCityWarReport> reportList){
        return DaoHelper.getCrossTongBingReportDaoImpl().addCityReportList(reportList);
    }

    public static boolean addUserReportList(List<CrossTongBingUserWarReport> reportList){
        return DaoHelper.getCrossTongBingReportDaoImpl().addUserReportList(reportList);
    }

    public static List<CrossTongBingCityWarReport> getCityReportList(int activityId, int groupId) {
        return DaoHelper.getCrossTongBingReportDaoImpl().getCityReportList(activityId, groupId);
    }

    public static List<CrossTongBingUserWarReport> getUserReportList(int activityId, int groupId) {
        return DaoHelper.getCrossTongBingReportDaoImpl().getUserReportList(activityId, groupId);
    }

}
